home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
- Object = "{805DC804-058A-11D2-94FE-0080C8796280}#72.0#0"; "FastForm.ocx"
- Begin VB.Form Form1
- AutoRedraw = -1 'True
- BackColor = &H00FFFFFF&
- Caption = "FastForm Control - Test Program"
- ClientHeight = 8415
- ClientLeft = 240
- ClientTop = 525
- ClientWidth = 9525
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- Picture = "FastFormTest.frx":0000
- ScaleHeight = 8415
- ScaleWidth = 9525
- Begin ComctlLib.Toolbar Toolbar1
- Align = 1 'Align Top
- Height = 420
- Left = 0
- TabIndex = 36
- Top = 0
- Width = 9525
- _ExtentX = 16801
- _ExtentY = 741
- Appearance = 1
- ImageList = "ImageList2"
- _Version = 327682
- BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7}
- NumButtons = 2
- BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Object.Tag = ""
- ImageIndex = 1
- EndProperty
- BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7}
- Object.Tag = ""
- ImageIndex = 2
- EndProperty
- EndProperty
- End
- Begin VB.CommandButton cmdPicSize
- Caption = "Click me"
- Height = 975
- Left = 3960
- Style = 1 'Graphical
- TabIndex = 35
- Top = 4080
- Width = 1095
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "SaveWindowState"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 6
- Left = 5880
- Style = 1 'Graphical
- TabIndex = 34
- Top = 720
- Width = 1935
- End
- Begin VB.Frame Frame1
- BorderStyle = 0 'None
- Caption = "Frame1"
- Height = 1455
- Left = 240
- TabIndex = 29
- Top = 2160
- Width = 2415
- Begin VB.TextBox txtMinHeight
- Height = 375
- Left = 1080
- TabIndex = 31
- Top = 840
- Width = 1215
- End
- Begin VB.TextBox txtMinWidth
- Height = 375
- Left = 1080
- TabIndex = 30
- Top = 240
- Width = 1215
- End
- Begin VB.Label Label1
- Caption = "MinHeight"
- Height = 255
- Index = 1
- Left = 120
- TabIndex = 33
- Top = 840
- Width = 975
- End
- Begin VB.Label Label1
- Caption = "MinWidth"
- Height = 255
- Index = 0
- Left = 120
- TabIndex = 32
- Top = 360
- Width = 975
- End
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "ScaleBorders"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 9
- Left = 4815
- Style = 1 'Graphical
- TabIndex = 28
- Top = 1680
- Width = 1935
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "ScaleGraphics"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 8
- Left = 6855
- Style = 1 'Graphical
- TabIndex = 27
- Top = 1680
- Width = 1935
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "ResizeOnMouseUp"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 7
- Left = 5895
- Style = 1 'Graphical
- TabIndex = 26
- Top = 1200
- Width = 1935
- End
- Begin ComctlLib.TabStrip TabStrip1
- Height = 1095
- Left = 120
- TabIndex = 25
- Top = 5040
- Width = 3735
- _ExtentX = 6588
- _ExtentY = 1931
- ImageList = "ImageList2"
- _Version = 327682
- BeginProperty Tabs {0713E432-850A-101B-AFC0-4210102A8DA7}
- NumTabs = 3
- BeginProperty Tab1 {0713F341-850A-101B-AFC0-4210102A8DA7}
- Caption = "One"
- Object.Tag = ""
- ImageVarType = 2
- ImageIndex = 1
- EndProperty
- BeginProperty Tab2 {0713F341-850A-101B-AFC0-4210102A8DA7}
- Caption = "Two"
- Object.Tag = ""
- ImageVarType = 2
- ImageIndex = 2
- EndProperty
- BeginProperty Tab3 {0713F341-850A-101B-AFC0-4210102A8DA7}
- Caption = "three"
- Object.Tag = ""
- ImageVarType = 2
- ImageIndex = 3
- EndProperty
- EndProperty
- End
- Begin VB.PictureBox Picture1
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 855
- Left = 4200
- Picture = "FastFormTest.frx":3B47
- ScaleHeight = 795
- ScaleWidth = 1110
- TabIndex = 24
- Top = 5760
- Width = 1170
- End
- Begin VB.CommandButton Command1
- BackColor = &H00C0FFFF&
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 735
- Left = 360
- Picture = "FastFormTest.frx":3D5F
- Style = 1 'Graphical
- TabIndex = 22
- Top = 4080
- Width = 1095
- End
- Begin ComctlLib.StatusBar StatusBar1
- Align = 2 'Align Bottom
- Height = 375
- Left = 0
- TabIndex = 21
- Top = 8040
- Width = 9525
- _ExtentX = 16801
- _ExtentY = 661
- SimpleText = ""
- _Version = 327682
- BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7}
- NumPanels = 2
- BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7}
- AutoSize = 1
- Object.Width = 8123
- Text = "a short text"
- TextSave = "a short text"
- Object.Tag = ""
- EndProperty
- BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7}
- AutoSize = 1
- Object.Width = 8123
- Text = "a long text to see what happens when you scale it"
- TextSave = "a long text to see what happens when you scale it"
- Object.Tag = ""
- EndProperty
- EndProperty
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 7920
- Top = 480
- _ExtentX = 847
- _ExtentY = 847
- _Version = 327681
- End
- Begin VB.CommandButton cmdAbout
- Caption = "About"
- DownPicture = "FastFormTest.frx":3F77
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 615
- Left = 4800
- Picture = "FastFormTest.frx":4079
- Style = 1 'Graphical
- TabIndex = 19
- Top = 2160
- Width = 975
- End
- Begin VB.CommandButton cmdReset
- Caption = "Reset"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 615
- Left = 4800
- TabIndex = 18
- Top = 3120
- Width = 975
- End
- Begin VB.Frame Frame3
- BorderStyle = 0 'None
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 1676
- Left = 5880
- TabIndex = 7
- Top = 2160
- Width = 3405
- Begin VB.HScrollBar hsbScaleX
- Height = 252
- LargeChange = 10
- Left = 600
- Max = 100
- TabIndex = 10
- Top = 474
- Width = 1228
- End
- Begin VB.HScrollBar hsbScaleY
- Height = 252
- LargeChange = 10
- Left = 600
- Max = 100
- TabIndex = 9
- Top = 1200
- Width = 1228
- End
- Begin VB.CommandButton cmdScale
- Caption = "Scale"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 489
- Index = 0
- Left = 2160
- TabIndex = 8
- Top = 600
- Width = 985
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "%"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 3
- Left = 1800
- TabIndex = 16
- Top = 945
- Width = 375
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "%"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 2
- Left = 1800
- TabIndex = 15
- Top = 240
- Width = 375
- End
- Begin VB.Label lblScaleX
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "0"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 600
- TabIndex = 14
- Top = 240
- Width = 1230
- End
- Begin VB.Label lblScaleY
- Alignment = 2 'Center
- BackStyle = 0 'Transparent
- Caption = "0"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 600
- TabIndex = 13
- Top = 960
- Width = 1230
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- BackStyle = 0 'Transparent
- Caption = "ScaleX"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 0
- Left = 0
- TabIndex = 12
- Top = 240
- Width = 615
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- BackStyle = 0 'Transparent
- Caption = "ScaleY"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Index = 1
- Left = 0
- TabIndex = 11
- Top = 945
- Width = 615
- End
- End
- Begin VB.Frame Frame2
- BorderStyle = 0 'None
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 960
- Left = 2760
- TabIndex = 5
- Top = 2400
- Width = 1965
- Begin VB.CommandButton cmdGradientColour
- Caption = "Gradient Colour"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 489
- Left = 120
- Style = 1 'Graphical
- TabIndex = 6
- Top = 240
- Width = 1713
- End
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "StayOnTop"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 5
- Left = 3855
- Style = 1 'Graphical
- TabIndex = 4
- Top = 1200
- Width = 1935
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "ScaleFonts"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 4
- Left = 2775
- Style = 1 'Graphical
- TabIndex = 3
- Top = 1680
- Width = 1950
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "ScaleControls"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 3
- Left = 735
- Style = 1 'Graphical
- TabIndex = 2
- Top = 1680
- Width = 1935
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "GradientFill"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 2
- Left = 1800
- Style = 1 'Graphical
- TabIndex = 23
- Top = 1200
- Width = 1935
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "CenterY"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 1
- Left = 3840
- Style = 1 'Graphical
- TabIndex = 1
- Top = 720
- Width = 1935
- End
- Begin VB.CheckBox chkBooleanProperties
- Caption = "CenterX"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Index = 0
- Left = 1800
- Style = 1 'Graphical
- TabIndex = 0
- Top = 720
- Width = 1935
- End
- Begin FastForm.FastFormControl FastFormControl1
- Left = 360
- Top = 600
- _ExtentX = 1826
- _ExtentY = 1217
- ScaleFonts = -1 'True
- GradientFill = -1 'True
- ScaleControls = -1 'True
- StayOnTop = -1 'True
- MinWidth = 4000
- MinHeight = 4000
- ScaleBorders = -1 'True
- ResizeOnMouseUp = -1 'True
- ControlFlagCount= 56
- ControlFlagControlKey0= "Form1"
- ControlFlagControlKey2= "cmdPicSize"
- ControlFlagDontScaleGraphic2= -1 'True
- ControlFlagControlKey3= "chkBooleanProperties(6)"
- ControlFlagControlKey9= "chkBooleanProperties(9)"
- ControlFlagControlKey10= "chkBooleanProperties(8)"
- ControlFlagControlKey11= "chkBooleanProperties(7)"
- ControlFlagControlKey13= "Picture1"
- ControlFlagControlKey14= "Command1"
- ControlFlagControlKey17= "cmdAbout"
- ControlFlagControlKey18= "cmdReset"
- ControlFlagControlKey22= "cmdScale(0)"
- ControlFlagControlKey30= "cmdGradientColour"
- ControlFlagControlKey31= "chkBooleanProperties(5)"
- ControlFlagControlKey32= "chkBooleanProperties(4)"
- ControlFlagControlKey33= "chkBooleanProperties(3)"
- ControlFlagControlKey34= "chkBooleanProperties(2)"
- ControlFlagControlKey35= "chkBooleanProperties(1)"
- ControlFlagControlKey36= "chkBooleanProperties(0)"
- ControlFlagControlKey37= "ImageList2"
- ControlFlagControlKey38= "Image1"
- ScaleGraphics = -1 'True
- ReplaceFontsWith= "Arial"
- SaveWindowState = -1 'True
- WindowName = "FastForm Control - Test Program"
- End
- Begin ComctlLib.ImageList ImageList2
- Left = 2520
- Top = 4080
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- UseMaskColor = 0 'False
- _Version = 327682
- BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7}
- NumListImages = 4
- BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "FastFormTest.frx":417B
- Key = ""
- EndProperty
- BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "FastFormTest.frx":428D
- Key = ""
- EndProperty
- BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "FastFormTest.frx":439F
- Key = ""
- EndProperty
- BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7}
- Picture = "FastFormTest.frx":44B1
- Key = ""
- EndProperty
- EndProperty
- End
- Begin VB.Image Image1
- Height = 1455
- Left = 2400
- Picture = "FastFormTest.frx":45C3
- Stretch = -1 'True
- Top = 6360
- Width = 1575
- End
- Begin VB.Label lblInfo
- BackStyle = 0 'Transparent
- Caption = "lblInfo"
- ForeColor = &H008080FF&
- Height = 3615
- Left = 5640
- TabIndex = 20
- Top = 3960
- Width = 3615
- WordWrap = -1 'True
- End
- Begin VB.Line Line2
- BorderColor = &H00C0C0FF&
- BorderWidth = 5
- X1 = 120
- X2 = 5400
- Y1 = 3960
- Y2 = 3960
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "Example Controls"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 13.5
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00C0C0FF&
- Height = 375
- Left = 120
- TabIndex = 17
- Top = 3600
- Width = 3045
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 11
- X1 = 1095
- X2 = 1095
- Y1 = 6900
- Y2 = 7731
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 10
- X1 = 855
- X2 = 855
- Y1 = 6300
- Y2 = 7131
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 9
- X1 = 1710
- X2 = 1710
- Y1 = 6300
- Y2 = 7131
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 8
- X1 = 855
- X2 = 1704
- Y1 = 7140
- Y2 = 7140
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 7
- X1 = 855
- X2 = 1704
- Y1 = 6300
- Y2 = 6300
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 6
- X1 = 255
- X2 = 255
- Y1 = 6900
- Y2 = 7725
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 5
- X1 = 255
- X2 = 1104
- Y1 = 7725
- Y2 = 7725
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 4
- X1 = 255
- X2 = 1104
- Y1 = 6900
- Y2 = 6900
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 3
- X1 = 1095
- X2 = 1701
- Y1 = 7733
- Y2 = 7140
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 2
- X1 = 255
- X2 = 861
- Y1 = 7733
- Y2 = 7140
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 1
- X1 = 1095
- X2 = 1701
- Y1 = 6893
- Y2 = 6300
- End
- Begin VB.Line Line1
- BorderColor = &H0000FFFF&
- BorderWidth = 5
- Index = 0
- X1 = 255
- X2 = 861
- Y1 = 6893
- Y2 = 6300
- End
- Begin VB.Shape Shape1
- BorderColor = &H0000FF00&
- BorderWidth = 3
- Height = 960
- Left = 4200
- Top = 6720
- Width = 1245
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim Initialised As Boolean
- Private Sub chkBooleanProperties_Click(Index As Integer)
- With FastFormControl1
- Select Case Index
- Case 0
- .CenterX = chkBooleanProperties(Index).Value
- Case 1
- .CenterY = chkBooleanProperties(Index).Value
- Case 2
- .GradientFill = chkBooleanProperties(Index).Value
- Case 3
- .ScaleControls = chkBooleanProperties(Index).Value
- Case 4
- .ScaleFonts = chkBooleanProperties(Index).Value
- Case 5
- .StayOnTop = chkBooleanProperties(Index).Value
- Case 6
- .SaveWindowState = chkBooleanProperties(Index).Value
- Case 7
- .ResizeOnMouseUp = chkBooleanProperties(Index).Value
- Case 8
- .ScaleGraphics = chkBooleanProperties(Index).Value
- Case 9
- .ScaleBorders = chkBooleanProperties(Index).Value
- End Select
- End With
- End Sub
- Private Sub cmdAbout_Click()
- FastFormControl1.ShowAboutBox
- End Sub
- Private Sub cmdGradientColour_Click()
- CommonDialog1.ShowColor
- FastFormControl1.GradientColour = CommonDialog1.Color
- cmdGradientColour.BackColor = CommonDialog1.Color
- End Sub
- Private Sub cmdPicSize_Click()
- Static Shown As Boolean
- With cmdPicSize
- .Caption = ""
- If Not Shown Then
- MsgBox "This shows one method of manually scaling a graphic"
- Shown = True
- End If
- .Picture = FastFormControl1.SizePicture(Image1.Picture, .Width - 200, .Height - 200)
- End With
- End Sub
- Private Sub cmdReset_Click()
- FastFormControl1.Reset
- End Sub
- Private Sub cmdScale_Click(Index As Integer)
- FastFormControl1.ScaleX = lblScaleX
- FastFormControl1.ScaleY = lblScaleY
- End Sub
- Private Sub Form_Load()
- Dim n As Integer
- With FastFormControl1
- For n = 0 To 10
- Select Case n
- Case 0
- If .CenterX Then chkBooleanProperties(n).Value = 1
- Case 1
- If .CenterY Then chkBooleanProperties(n).Value = 1
- Case 2
- If .GradientFill Then chkBooleanProperties(n).Value = 1
- Case 3
- If .ScaleControls Then chkBooleanProperties(n).Value = 1
- Case 4
- If .ScaleFonts Then chkBooleanProperties(n).Value = 1
- Case 5
- If .StayOnTop Then chkBooleanProperties(n).Value = 1
- Case 6
- If .SaveWindowState Then chkBooleanProperties(n).Value = 1
- Case 7
- If .ResizeOnMouseUp Then chkBooleanProperties(n).Value = 1
- Case 8
- If .ScaleGraphics Then chkBooleanProperties(n).Value = 1
- Case 9
- If .ScaleBorders Then chkBooleanProperties(n).Value = 1
- End Select
- Next n
- cmdGradientColour.BackColor = FastFormControl1.GradientColour
- CommonDialog1.Color = FastFormControl1.GradientColour
- lblScaleX = .ScaleX
- lblScaleY = .ScaleY
- hsbScaleX = lblScaleX
- hsbScaleY = lblScaleY
- txtMinWidth = .MinWidth
- txtMinHeight = .MinHeight
- Initialised = True
- cmdPicSize.Picture = Image1.Picture
- End With
- lblInfo = _
- "This example does not use any code at all to manipulate the forms " & _
- "behaviour. All the code is only to give you an interface to try out " & _
- "some of the features of the FastForm control." & vbCr & _
- "Use the controls on this form and the resize handles of the form to " & _
- "experiment with the FastForm Control. Then relate what this example is " & _
- "doing in relationship to the properties and methods of the FastForm control. " & vbCr & _
- "The FastForm control has full context sensitive help, so use that to assist you."
- End Sub
- Private Sub hsbScaleX_Change()
- lblScaleX = hsbScaleX
- End Sub
- Private Sub hsbScaleX_Scroll()
- hsbScaleX_Change
- End Sub
- Private Sub hsbScaleY_Change()
- lblScaleY = hsbScaleY
- End Sub
- Private Sub hsbScaleY_Scroll()
- hsbScaleY_Change
- End Sub
- Private Sub txtMinHeight_Change()
- On Error Resume Next
- FastFormControl1.MinHeight = txtMinHeight
- On Error GoTo 0
- End Sub
- Private Sub txtMinWidth_Change()
- On Error Resume Next
- FastFormControl1.MinWidth = txtMinWidth
- On Error GoTo 0
- End Sub
-